package com.chinaunicom.structure.decorator;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2022/7/28 15:55
 * Description: 抽象装饰
 */
public abstract class Garnish extends FastFood {
    private FastFood fastFood;
    
    public Garnish(FastFood fastFood, float price){
        super(price);
        this.fastFood = fastFood;
    }


    @Override
    public float cost() {
        return this.fastFood.cost();
    }
    
    
}
